﻿CREATE TABLE [dbo].[admin_ApplicationDocuments] (
    [IDTipDocument] SMALLINT         NOT NULL,
    [ApplicationID] UNIQUEIDENTIFIER NOT NULL,
    CONSTRAINT [PK_admin_ApplicationDocuments] PRIMARY KEY CLUSTERED ([IDTipDocument] ASC, [ApplicationID] ASC),
    CONSTRAINT [FK_admin_ApplicationDocuments_aspnet_Applications] FOREIGN KEY ([ApplicationID]) REFERENCES [dbo].[aspnet_Applications] ([ApplicationId]),
    CONSTRAINT [FK_admin_ApplicationDocuments_TipDocument] FOREIGN KEY ([IDTipDocument]) REFERENCES [dbo].[TipDocument] ([IDTipDocument])
);

